package com.cfswt.tasksystem.mapper;

import com.cfswt.tasksystem.pojo.entity.Custom;
import com.cfswt.tasksystem.pojo.vo.CustomVO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface CustomMapper {
    public void addCustom(Custom custom);

    public void deleteCustom(Integer id);

    public void updateCustom(Custom custom);

    public List<Custom> selectCustom();

    public List<CustomVO> selectCustomVO();

    public List<String> selectCompanyName();

    public Integer selectIdByCompanyName(String companyName);

    Optional<Custom> selectCustom(Integer id);
}
